package com.wabbei.friendcenter.action;

import java.util.List;

import org.apache.struts2.json.annotations.JSON;

import com.webbei.friendcenter.service.MyFriendCenter;
import com.webbei.pojo.Customcomment;
import com.webbei.pojo.Orders;
public class MyOwnShareAndPareInShareAction {
	private MyFriendCenter friservice;
	private String uname;
	private List<Orders> mycustomsShare;
	private List<Orders> myPartIncustomsShare;
	private List<Customcomment> custIsShareComments;
	private List<Customcomment> custPartInShareComments;
	public String execute(){
		uname="chenhao";
		mycustomsShare=friservice.getAllcustomsShareByUserName(uname);
		myPartIncustomsShare=friservice.getAllMyPartInShareByUserName(uname);
		custIsShareComments=friservice.getALLCommentISShareByUsername(uname);
		custPartInShareComments=friservice.getAllCommentPartInShareByUserName(uname);
		System.out.println(uname);
		return "success";
	}
	public void setFriservice(MyFriendCenter friservice) {
		this.friservice = friservice;
	}
	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	public List<Orders> getMycustomsShare() {
		return mycustomsShare;
	}
	public void setMycustomsShare(List<Orders> mycustomsShare) {
		this.mycustomsShare = mycustomsShare;
	}
	
	
	public List<Customcomment> getCustIsShareComments() {
		return custIsShareComments;
	}
	public void setCustIsShareComments(List<Customcomment> custIsShareComments) {
		this.custIsShareComments = custIsShareComments;
	}
	
	public List<Orders> getMyPartIncustomsShare() {
		return myPartIncustomsShare;
	}
	public void setMyPartIncustomsShare(List<Orders> myPartIncustomsShare) {
		this.myPartIncustomsShare = myPartIncustomsShare;
	}
	
	public List<Customcomment> getCustPartInShareComments() {
		return custPartInShareComments;
	}
	public void setCustPartInShareComments(
			List<Customcomment> custPartInShareComments) {
		this.custPartInShareComments = custPartInShareComments;
	}
	@JSON(serialize=false)
	public MyFriendCenter getFriservice() {
		return friservice;
	}
	
}
